package com.wnhz.work.yz.utils;

import android.content.Context;
import android.widget.ImageView;

import com.nostra13.universalimageloader.core.ImageLoader;
import com.youth.banner.loader.ImageLoaderInterface;

public class GlideImageLoader implements ImageLoaderInterface<ImageView> {
    public void displayImage(Context context, Object path, ImageView imageView) {
//        x.image().bind(imageView, path + "");

        ImageLoader.getInstance().displayImage(path + "", imageView);
    }

    @Override
    public ImageView createImageView(Context context) {
        ImageView p = new ImageView(context);
        p.setScaleType(ImageView.ScaleType.CENTER_CROP);
        return p;
    }

}